﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ProjectCore.Domain.Model.Entity
{
    public class Order//订单
    {
        [Key]
        public int OrderID { get; set; }//订单ID
        [StringLength(50)]
        public string OrderNum { get; set; }//订单号
        public int Sort { get; set; }//显示顺序
        [StringLength(50)]
        public string Account { get; set; }//收款账号
        public int Pay { get; set; }//支付方式
        public int Send { get; set; }//配送方式
        public int State { get; set; }//状态
        public int UserID { get; set; } //连接Users表的UserID
        public int ProID { get; set; }//连接Product表的ProID
        public DateTime OrderTime { get; set; }//添加订单时;间
        [StringLength(50)]
        public string Spare { get; set; }//备用
        [NotMapped]
        public bool IsDeleted { get; set; }
    }
}
